<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich" xmlns:vm="http://full.srv.br/virtual/menu"
	xmlns:vl="http://full.srv.br/virtual/login">
	<ui:component>
		<rich:panel header="Faça seu Registro:">
			<h:messages layout="table" />
			<h:form rendered="true" prependId="false">
				<h:panelGrid columns="2">
					<h:outputText value="Nome:" />
					<h:panelGroup>
						<h:inputText id="tfUserName" required="true" rendered="true" value="#{userLogin.name}" />
						<h:message for="tfUserName" />
					</h:panelGroup>
					<h:outputText value="Apelido (Como gosta de ser chamado):" />
					<h:panelGroup>
						<h:inputText id="tfUserAka" required="false" rendered="true" value="#{userLogin.aka}" />
						<h:message for="tfUserAka" />
					</h:panelGroup>
					<h:outputText value="E-mail:" />
					<h:panelGroup>
						<h:inputText id="tfUserEmail" required="true" rendered="true" value="#{userLogin.email}">
							<f:validator validatorId="br.srv.full.faces.EmailValidator" />
						</h:inputText>
						<h:message for="tfUserEmail" />
					</h:panelGroup>
					<h:commandButton rendered="true" value="Registrar" action="#{loginManager.confirmRegistration}" />
					<h:commandButton type="reset" action="#{loginManager.cancelRegistration}" rendered="true" value="Cancelar" />
				</h:panelGrid>Outros dados poder&atilde;o ser preenchidos após a confirma&ccedil;&atilde;o dos fornecidos acima!
	        </h:form>
		</rich:panel>
	</ui:component>
</html>